public virtual NPromise<bool> NewDocumentAsync( System.bool reportErrors, System.bool askToSaveChanges )
Parameters
- reportErrors
- whether errors should be reported to the user
- askToSaveChanges
- whether the user should be prompted to save changes to the document, if it is modified
Return Value
a promise which resolves to true, if a new document was successfully created and loaded in the view, otherwise false